<HTML>
<head>
<title>
</title>
</head>

<body>

<?php

//  Wtg
//  Copyright (C) 2006 Niels Egberts <niels.egberts@gmail.com>
//
//  This program is free software; you can redistribute it and/or
//  modify it under the terms of the GNU General Public License
//  as published by the Free Software Foundation; either version 2
//  of the License, or (at your option) any later version.
//
//  This program is distributed in the hope that it will be useful,
//  but WITHOUT ANY WARRANTY; without even the implied warranty of
//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
//  GNU General Public License for more details.
//
//  You should have received a copy of the GNU General Public License
//  along with this program; if not, write to the Free Software
//  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
//  02111-1307, USA.

if ( !defined('IS_GAME') ) {
	die ("Hacking attempt");
}

require "connect.php"



?>


<form method="POST">
  <p>Wat je wilt geven: </p>
  <p>
    <input type="text" name="voor_aantal" size="4"> 
    <select size="1" name="voor_product">
      <option value="stone">steen</option>
      <option value="wood">hout</option>
      <option value="iron">ijzer</option>
      <option value="oil">olie</option>
    </select>
  </p>
  <p>Wat je wilt hebben: </p>
  <p>
    <input type="text" name="tegen_aantal" size="4">
    <select size="1" name="tegen_product">
      <option value="stone">steen</option>
      <option value="wood">hout</option>
      <option value="iron">ijzer</option>
      <option value="oil">olie</option>
    </select>
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</p>
  <p>&nbsp;<input type="submit" value="Send" name="B1">	
    <input type="reset" value="Erase" name="B22">
  </p>
  <p>
    <textarea rows="9" name="textarea" cols="20" disabled>
	<?php
	$id = $_SESSION['id'];
		$query = "SELECT id, type_offer, amount_offer, type_seek, amount_seek FROM trade WHERE id = $id";
		$sql = mysql_query($query) or die ( mysql_error( ) );
			while($record = mysql_fetch_array($sql)){
				
				echo "$amount_seek $type_seek <BR>";
				echo "$amount_offer $type_offer <BR>";
				
			}

	?>
	
	</textarea>
  </p>
</form>

</body>
</HTML>